<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo2</title>
    <script src="node_modules/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    {{msg}}
</div>
<script type="text/javascript">
    var app=new Vue({
        el:"#app",
        date:{
            msg:""
        },
        //钩子函数 该函数常用于初始化 this表示vue实例
        created(){
            this.msg="你好啊";
            console.log(this);
        }

    });
</script>
</body>
</html>